﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BonsaiScrum.Core.Query;
using FluentNHibernate.Mapping;
using BonsaiScrum.Data.CustomTypes;

namespace BonsaiScrum.Data.Mappings.Query
{
    public class TaskReportMap : ClassMap<TaskReport>
    {
        public TaskReportMap()
        {
            Table("Task");

            Id(x => x.Id, "TaskID")
                .Access.BackingField();

            Map(x => x.Status, "TaskStatus")
                .Access.BackingField()
                .CustomType<TaskStatusType>();

            Map(x => x.Description, "TaskDesc");


        }
    }
}
